package com.my.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.my.demo.pojo.EnterpriseUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface EnterpriseUserMapper extends BaseMapper<EnterpriseUser> {
  @Select("SELECT type FROM enterprise_user where space_no=#{spaceNo} and user_no=#{userId}")
  Integer getType(@Param("spaceNo") Integer spaceNo,@Param("userId") Integer userId);
}
